/**************************************************
*  Created:  2015-03-10
*  Info:移动护理v4版公共部分代码
*		1.v3版index中大部分函数迁移至此处
*		2.包含所需公共全局变量
*		3.包含所需公共函数
*		4.删除无用代码
*		5.注释大部分代码，研发人员根据需要逐一打开并整理所需部分代码，或逐一从index中拷贝至此处
*		6.非公共部分请不要放在此文件中，可放到特定页面或单独命名为xxx.js的文件中
*  @Tiantanhehe (C)2011-3011 Tiantanhehe
*  @Author Tianran <tianran@tiantanhehe.com>
*  @Version 1.0
*  @Updated History:
***************************************************/

/************************全局变量*************************/
//系统信息全局信息
var user_auth_check_time = 60000;
var server_name = "云服务器";
var version_value = "1";
var new_version_value = "1";
var ip_arr = [];
var server_url = "";
var server_n = "";
var app_path = "";
var host_ip = "";
var user_operation_auth_sate = false;//用户进行操作的身份验证状态，如果此状态为false进行操作前需要先验证身份
var nurse_info_global = null;
var nurse_keshi_list_global = null;
var user_number_global = "";
var patient_info_global = null;
var current_rquest_info = null;
var zhuyuan_id = "";
//新版本添加yiyuan_id 筛选 add by zhanghong 2017/03/23
var yiyuan_id = "/yiyuan_id/"
var yiyuan_idd = 0;
//end

getCurrentUserInfo(window.location.search);

// //右侧患者列表加载更多用
var right_patient_page=1;
var right_patient_totalpages;

// // 定义页面类型
// var document_type_global = "index";

// //医嘱分页当前页数
 var yizhu_list_page_global=1;

//由Android调用的传参函数
function getCurrentUserInfo(rquest_info)
{
	current_rquest_info = rquest_info;
	//通过URL获取传递的参数：
	var theRequest = new Object();
	if (rquest_info.indexOf("?") != -1 && rquest_info.indexOf("host_ip") != -1)
	{
		var str = rquest_info.substr(1);
		strs = str.split("&");
		for(var i = 0; i < strs.length; i ++)
		{
			theRequest[strs[i].split("=")[0]]=decodeURI(strs[i].split("=")[1]);
		}

		host_ip = theRequest["host_ip"];
		zhuyuan_id = theRequest["patient_zhuyuan_id"];
		//获取医院id
		yiyuan_idd = theRequest['yiyuan_id']?theRequest['yiyuan_id']:0;
		yiyuan_id = yiyuan_id + yiyuan_idd;


		//获取当前应用目录信息
		server_url = "http://"+host_ip+"/hlyl_auth/";
		app_path = window.location.href;
		app_path = app_path.substr(0,app_path.lastIndexOf("/")+1);

		nurse_info_global = {user_number:theRequest["user_number"],user_department:theRequest["user_department"],user_name:theRequest["user_name"]};
		//增加user_department:theRequest["user_department"],
		patient_info_global = {zhuyuan_id:theRequest["patient_zhuyuan_id"],user_department:theRequest["user_department"],patient_id:theRequest["patient_id"],xingming:theRequest["patient_xingming"],xingbie:theRequest["patient_xingbie"],nianling:theRequest["patient_nianling"],bingchuang_hao:theRequest["patient_bingchuang_hao"],zhuyuan_bingqu:theRequest["patient_zhuyuan_bingqu"]};

		//document.write("<script src='http://"+host_ip+"/zpdydhl/Public/js/jsonp.js'><\/script>");
		$.getScript(server_url+"Public/js/jsonp.js",function(){
			try
			{
				refreshData();
			}
			catch(err){}
		});
		// 设置头部信息
		setHeader();

	}
}

/**********************************页面初始化******************************/
$(function(){
	// 回首页
	$(".back_home").live("click",function(){
			window.location.href = "../System/showMobileSystem.html";
		});
	});

// 获取当前日期
function getCurrentDate()
{
	var myDate = new Date();
    var m = myDate.getMonth()+1;
    var d = myDate.getDate();
    var h = myDate.getHours();
    var m2 = myDate.getMinutes();
    if(m<10)
    {
        m = "0"+m;
    }
    if(d<10)
    {
        d = "0"+d;
    }
    if(h<10)
    {
        h = "0"+h;
    }
    if(m2<10)
    {
        m2 = "0"+m2;
    }
    var nowdate = myDate.getFullYear()+'-'+m+'-'+d;
    return nowdate;
}

// 获取当前日期时间
function getCurrentDateTime()
{
	var myDate = new Date();
    var m = myDate.getMonth()+1;
    var d = myDate.getDate();
    var h = myDate.getHours();
    var m2 = myDate.getMinutes();
    if(m<10)
    {
        m = "0"+m;
    }
    if(d<10)
    {
        d = "0"+d;
    }
    if(h<10)
    {
        h = "0"+h;
    }
    if(m2<10)
    {
        m2 = "0"+m2;
    }
    var nowdate = myDate.getFullYear()+'-'+m+'-'+d+' '+h+':'+m2;
    return nowdate;
}

//设置头部
function setHeader(){
	if(patient_info_global.xingbie=='男')
		$(".patient_xingbie").html('<span class="head_touxiang_nan"></span>');
	else
		$(".patient_xingbie").html('<span class="head_touxiang_nv"></span>');
	$(".patient_nianling").html(patient_info_global.nianling);
	$(".patient_xingming").html(patient_info_global.xingming);
	$(".patient_bingchuang_hao").html(patient_info_global.bingchuang_hao+"床");
}
//设置GET头部
function setGetHeader(){
	if(getRequestOne("patient_xingbie")=='男')
		$(".patient_xingbie").html('<span class="head_touxiang_nan"></span>');
	else
		$(".patient_xingbie").html('<span class="head_touxiang_nv"></span>');
	$(".patient_nianling").html(getRequestOne("patient_nianling"));
	$(".patient_xingming").html(getRequestOne("patient_xingming"));
	$(".patient_bingchuang_hao").html(getRequestOne("patient_bingchuang_hao")+"床");
}
//获取url全部传参
function getRequestAll() {
  var url = current_rquest_info; //获取url中"?"符后的字串
   var theRequest = new Object();
   if (url.indexOf("?") != -1) {
      var str = url.substr(1);
      strs = str.split("&");
      for(var i = 0; i < strs.length; i ++) {
         theRequest[strs[i].split("=")[0]]=(strs[i].split("=")[1]);
      }
   }
   return theRequest;
}
//获取单独的传参
function getRequestOne(name) {
   var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)","i");
   var r = current_rquest_info.substr(1).match(reg);
   if (r!=null) return (r[2]); return null;
}

//左侧用户登陆信息
function leftUserInfo()
{
	$("#login_nurse_id").html("护士&nbsp&nbsp&nbsp&nbspID:"+nurse_info_global.user_number);
	$("#login_nurse_name").html("护士姓名:"+nurse_info_global.user_name);
	$("#login_nurse_keshi").html("所属科室:"+nurse_info_global.user_department);
	$("#login_nurse_zhiwu").html("职&nbsp&nbsp&nbsp&nbsp务:"+nurse_info_global.user_department_position);
	$("#hushi_biaotilan").html(nurse_info_global.user_department_position+" "+nurse_info_global.user_name);
}

//设置时间输入框为插件时间插件
//name input框的name名称  init是否初始化时间为当前时间 ture flase
function selectInputTime(name,init)
{

	var opt = {theme:'android-ics light',mode:'scroller',display:'modal',lang:'zh',dateFormat: 'yy-mm-dd',setText: '确定',cancelText: '取消',dateOrder: 'yymmdd',dayText: '日', monthText: '月', yearText: '年',endYear:2020, startYear:2000};
		opt.date = {preset : 'date'};//日期
		opt.time = {preset : 'time'};//时间
		opt.datetime = { preset : 'datetime', minDate: new Date(2012,3,10,9,22), maxDate: new Date(2020,01,01,15,44), stepMinute: 1  };
	//日期+时间
	opt.select = {preset : 'select'};//下拉框
	$('input[name="'+name+'"]').val('').scroller('destroy').scroller($.extend(opt['datetime'],opt));
	if(init==true)
	{
		var nowdate = getCurrentDateTime();
		$('input[name="'+name+'"]').val(nowdate);
	}
	//时间更改
	$('input[name="'+name+'"]').live("click",function(){
		var opt = {theme:'android-ics light',mode:'scroller',display:'modal',lang:'zh',dateFormat: 'yy-mm-dd',setText: '确定',cancelText: '取消',dateOrder: 'yymmdd',dayText: '日', monthText: '月', yearText: '年',endYear:2020, startYear:2000
		};
		opt.date = {preset : 'date'};//日期
		opt.time = {preset : 'time'};//时间
		opt.datetime = { preset : 'datetime', minDate: new Date(2012,3,10,9,22), maxDate: new Date(2020,01,01,15,44), stepMinute: 1  };//日期+时间
		opt.select = {preset : 'select'};//下拉框
		$(this).val('').scroller('destroy').scroller($.extend(opt['datetime'],opt));
	});
}
//获取移动护理相关配置列表
function getConfigList()
{
	$.ajax({
		type: "get",
		async: false,
		url:server_url+"Mobile/Config/getConfigListJson"+yiyuan_id,
		dataType: "jsonp",
		jsonp: "callbackGetConfigList",
		jsonpCallback:"feedBackStateGetConfigList",
		error:function(mes)
		{
			alert(mes);
		},
		success: function(result) {
			if(result.ret=="success")
			{
				config_list_global = result.data;
			}
			else
			{
				alert(result.msg);
			}
		}
	});
}
// 扫码监听接口函数
function saomalistener(code)
{
	//初始化配置相关信息
	var gongpai_shibiema = "20";
	var huanzhe_shibiema = "ZY";
	var yizhu_shibiema = "YZ"
	var biaoben_shibiema="BB";
	var huanzhe_qiehuan_peiyao_hedui=true;
	var huanzhe_qiehuan_biaoben_hedui=false;
	var yidonghuli_saoma_refine_mode ="tiantan"
	//拆分扫描类型和扫码数值
	var code_type = $.trim(code.substring(0,2));
	var code_value = $.trim(code.substring(2));
	if(yidonghuli_saoma_refine_mode == "yixing")
		var zuhao = $.trim(code.substring(7));
	else if(yidonghuli_saoma_refine_mode == "tiantan")
		var zuhao = code_value;
	else
		var zuhao = code_value;
	//alert(code+"==zuhao:"+zuhao+"value:"+code_value+"type:"+code_type)
	if(code_type==gongpai_shibiema)
	{
		alert("获取护士登陆信息")
		//getPatientListInfo(code_value);
	}
	else if(code_type==huanzhe_shibiema)
	{
		getPatientListInfo(code_value);
	}
	else if(code_type==yizhu_shibiema)
	{
		if(document_type_global=="yizhuPeiye"||document_type_global=="yizhuZhixing")
		{
			if(document_type_global=="yizhuPeiye" && huanzhe_qiehuan_peiyao_hedui==true)
			{
				//根据扫描的二维码自动跳转定位患者(并且执行扫码操作)
				getPatientInfoByCode("yizhu",zuhao);
			}
			else
			{
				 //仅执行扫码操作
				saomaShuyePingqian(zuhao);
			}
		}
		else
		{
			alert("请在医嘱配液和医嘱执行页面扫描医嘱瓶贴!")
		}

	}
	else if(code_type==biaoben_shibiema)
	{
		//遂宁版用
		if(yidonghuli_saoma_refine_mode == "yixing")
		{
			code_value="20"+code_value;
		}
		if(document_type_global=="biaobenList")
		{
			if(document_type_global=="biaobenList" && huanzhe_qiehuan_biaoben_hedui==true)
			{
				//根据扫描的二维码自动跳转定位患者(并且执行扫码操作)
				getPatientInfoByCode("biaoben",code_value);
			}
			else
			{
				// 仅执行扫码操作
				saomaBiaobenPingqian(code_value);
			}
		}
		else
		{
			alert("请在标本核对页面扫描标本条码!")
		}
	}
	else
	{
		alert("此条码无效，请检查后再次扫描。");
	}
}

//根据传入的条码获取患者信息
function getPatientInfoByCode(code_type,code_value){
	$.ajax({
		type: "get",
		async: false,
		url:server_url+"Mobile/Patient/getPatientInfoByCode"+yiyuan_id,
		data: {code_type:code_type,code_value:code_value,user_department:nurse_info_global.user_department},
		dataType: "jsonp",
		jsonp: "callbackGetPatientInfoByCode",
		jsonpCallback:"feedBackStateGetPatientInfoByCode",
		error:function(mes)
		{
			alert(mes);
		},
		success: function(result) {
			if(result.ret=="success")
			{
				var zhuyuan_id = result.data;
				if(zhuyuan_id != patient_info_global.zhuyuan_id)
				{
					// 如果不是当前患者，先自动切换，再执行扫码函数
					jsjiaohu.goJiaohu(zhuyuan_id);
					getPatientListInfoAndSaoma(zhuyuan_id,code_type,code_value);

				}
				else
				{
					// 如果是当前患者，直接执行扫码函数
					if(code_type == "yizhu")
					{
						saomaShuyePingqian(code_value);
					}
					else if(code_type == "biaoben")
					{
						saomaBiaobenPingqian(code_value);
					}
				}
			}
			else if(result.ret=="no")
			{
				alert("您扫描了无效的条码，请核对后再进行操作。");
			}
		}
	});
}
//获取患者详细信息并且执行扫码操作
function getPatientListInfoAndSaoma(zhuyuan_id,code_type,code_value)
{
	$.ajax({
		type: "get",
		async: false,
		url:server_url+"Mobile/Patient/getPatientListInfoJson"+yiyuan_id,
		data: { zhuyuan_id : zhuyuan_id,user_department:nurse_info_global.user_department},
		dataType: "jsonp",
		jsonp: "callbackGetPatientListInfoJson",
		jsonpCallback:"feedBackStateGetPatientListInfoJson",
		error:function(mes)
		{
			alert(mes);
		},
		success: function(result) {
			if(result.ret=="success")
			{
				//初始医嘱分页默认第一页
				yizhu_list_page_global=1;
				patient_info_global = result.data;

				if(document_type_global=="yizhuPeiye")
				{
					getYizhuList(zhuyuan_id,"输液",$('.ui-btn-active').text());
				}
				else if(document_type_global=="yizhuZhixing")
				{
					getYizhuList(zhuyuan_id,"全部",$('.ui-btn-active').parent().attr("zhixing_state"));
				}
				else if(document_type_global=="biaobenList")
				{
					getJianchaList(zhuyuan_id,"未核对");
				}
				else if(document_type_global == "tizhengLuru"){
					setHeader();
					//tizhengLuruSwitchUser();
				}
				else if(document_type_global == "xunchaJilu"){
					setHeader();
					//xunchaJiluSwitchUser();
				}
				else if(document_type_global == "zhuyuanDetail"){
					setHeader();
					zhuyaunDetailSwitchuser();
				}
				else if(document_type_global == "tizhengList"){
					setHeader();
					tizhengListSwitchuser();
				}
				else if(document_type_global == "jianchaList"){
					jianyanJiancha(zhuyuan_id);
				}
				else if(document_type_global == "huliWenshu"){
					setHeader();
					huliWenshu();
				}else if(document_type_global == "zhuyuan_feiyong"){
					setHeader();
					getZhuyuanFeiyong();
				}
				else if(document_type_global == "hulijilu"){
					setHeader();
					huliJilu();
				}
				else if(document_type_global == "lishiTizheng_time")
				{
					getTizhengListByTime(null,0);
				}
				else if(document_type_global == "lishiTizheng_type")
				{
					getTizhengListByType(tizheng_jiancha_type_global);
				}
				else
				{
					setHeader();
				}

				// 执行扫码操作
				if (code_type == "yizhu")
				{
					saomaShuyePingqian(code_value);
				}
				else if (code_type == "biaoben")
				{
					saomaBiaobenPingqian(code_value);
				}
			}
			else if(result.ret=="no")
			{
				alert("未获得此患者信息，请核对此患者身份。");
			}
			else if(result.ret=="error")
			{
				alert("扫码参数传递错误，请重新尝试扫码操作，错误识别码：ERROR:zhuyuan_id:"+zhuyuan_id);
			}
			else
			{
				alert("信息获取出错，请稍后再重新尝试此操作，错误识别码：ERROR:001");
			}
		}
	})
}
//患者详细信息
function getPatientListInfo(zhuyuan_id)
{
	$.ajax({
		type: "get",
		async: false,
		url:server_url+"Mobile/Patient/getPatientListInfoJson/"+yiyuan_id,
		data: { zhuyuan_id:zhuyuan_id,user_number:getRequestOne('user_number')},
		dataType: "jsonp",
		jsonp: "callbackGetPatientListInfoJson",
		jsonpCallback:"feedBackStateGetPatientListInfoJson",
		error:function(mes)
		{
			alert(mes);
		},
		success: function(result) {
			if(result.ret=="success")
			{
				jsjiaohu.goJiaohu(zhuyuan_id);
				//初始医嘱分页默认第一页
				yizhu_list_page_global=1;
				patient_info_global = result.data;
				setHeader();
				if(document_type_global=="yizhuPeiye")
				{
					getYizhuList(zhuyuan_id,"输液",$('.ui-btn-active').text());
				}
				else if(document_type_global=="yizhuZhixing")
				{
					getYizhuList(zhuyuan_id,"全部",$('.ui-btn-active').parent().attr("zhixing_state"));
				}
				else if(document_type_global=="biaobenList")
				{
					getJianchaList(zhuyuan_id,"未核对");
				}
				else if(document_type_global == "tizhengLuru"){
					//setHeader();
					//tizhengLuruSwitchUser();
				}
				else if(document_type_global == "xunchaJilu"){
					//setHeader();
					//xunchaJiluSwitchUser();
				}
				else if(document_type_global == "zhuyuanDetail"){
					//setHeader();
					zhuyaunDetailSwitchuser();
				}
				else if(document_type_global == "tizhengList"){
					tizhengListSwitchuser();
				}
				else if(document_type_global == "jianchaList"){
					jianyanJiancha(zhuyuan_id);
				}
				else if(document_type_global == "huliWenshu"){
					//setHeader();
					huliWenshu();
				}else if(document_type_global == "zhuyuan_feiyong"){
					getZhuyuanFeiyong();
				}
				else if(document_type_global == "hulijilu"){
					//setHeader();
					huliJilu();
				}
				else if(document_type_global == "lishiTizheng_time")
				{
					getTizhengListByTime(null,0);
				}
				else if(document_type_global == "lishiTizheng_type")
				{
					getTizhengListByType(tizheng_jiancha_type_global);
				}
				else
				{
					setHeader();
				}
			}
			else if(result.ret=="chuyuan_patient")
			{
				alert("当前患者已经出院，请核对后再进行此操作。");
			}
			else if(result.ret=="no")
			{
				alert("未获得此患者信息，请核对此患者身份。");
			}
			else if(result.ret=="error")
			{
				alert("扫码参数传递错误，请重新尝试扫码操作，错误识别码：ERROR:zhuyuan_id:"+zhuyuan_id);
			}
			else
			{
				alert("信息获取出错，请稍后再重新尝试此操作，错误识别码：ERROR:001");
			}
		}
	})
}
function keyBoardListener(code)
{
	if(code==23&&(document_type_global=="tizhengLuru"||document_type_global=="addHulijilu"||document_type_global=="xunchaJilu"||document_type_global=="addXuetangJiludan"))
	{
		$(".save_btn").trigger("click");
	}
	else if(code==132)
	{
		if(document_type_global == "yizhuPeiye")
		{
			var yuansu = $('.li_zhixing_state'); //先取得所有input元素
			var number = yuansu.children().length;
			if(f2_key_number == number)
			{
				f2_key_number = 0;
			}//

			$("#zhixing_state_navbar a").css("color","#0D85C0");
			yuansu.eq( f2_key_number ).find("a").css("color","#ffffff");
			yuansu.eq( f2_key_number ).find("a").attr("class","ui-link ui-btn ui-btn-a ui-btn-active");
			yuansu.eq( f2_key_number - 1 ).find("a").attr("class","ui-link ui-btn ui-btn-a");

			var zhixing_state = yuansu.eq( f2_key_number ).attr("zhixing_state");
			getYizhuList(patient_info_global.zhuyuan_id,"输液",zhixing_state);

			f2_key_number++;
		}
		if(document_type_global == "biaobenList")
		{
			var yuansu = $('.jiancha_hedui_zhuangtai'); //先取得所有input元素
			var number = yuansu.children().length;
			if(f2_key_number == number)
			{
				f2_key_number = 0;
			}//

			$("#zhixing_state_navbar a").css("color","#0D85C0");
			yuansu.eq( f2_key_number ).find("a").css("color","#ffffff");
			yuansu.eq( f2_key_number ).find("a").attr("class","ui-link ui-btn ui-btn-a ui-btn-active");
			yuansu.eq( f2_key_number - 1 ).find("a").attr("class","ui-link ui-btn ui-btn-a");

			var jiancha_hedui_zhuangtai = yuansu.eq( f2_key_number ).attr("jiancha_hedui_zhuangtai");
			getJianchaList(patient_info_global.zhuyuan_id,jiancha_hedui_zhuangtai);

			f2_key_number++;
		}
		if(document_type_global == "yizhuZhixing")
		{
			var yuansu = $('.li_zhixing_state'); //先取得所有input元素
			var number = yuansu.children().length;
			if(f2_key_number == number)
			{
				f2_key_number = 0;
			}//

			$("#zhixing_state_navbar a").css("color","#0D85C0");
			yuansu.eq( f2_key_number ).find("a").css("color","#ffffff");
			yuansu.eq( f2_key_number ).find("a").attr("class","ui-link ui-btn ui-btn-a ui-btn-active");
			yuansu.eq( f2_key_number - 1 ).find("a").attr("class","ui-link ui-btn ui-btn-a");

			var zhixing_state = yuansu.eq( f2_key_number ).attr("zhixing_state");
			getYizhuList(patient_info_global.zhuyuan_id,"全部",zhixing_state);

			f2_key_number++;
		}
		if(document_type_global == "lishiTizheng_time" || document_type_global == "lishiTizheng_type")
		{
			if(document_type_global=='lishiTizheng_type')
			{

				$("#time a").addClass('ui-btn-active');
				$("#time a").css("color","#ffffff");
				$("#type a").removeClass('ui-btn-active');
				$("#type a").css("color","#0D85C0");

				$("#time_nav").css("display","");
				$("#type_nav").css("display","none");

				document_type_global = "lishiTizheng_time";
				getTizhengListByTime(tizheng_jiancha_date_global,0);
			}
			else
			{
				$("#type a").addClass('ui-btn-active');
				$("#type a").css("color","#ffffff");
				$("#time a").removeClass('ui-btn-active');
				$("#time a").css("color","#0D85C0");

				$("#time_nav").css("display","none");
				$("#type_nav").css("display","");

				document_type_global = "lishiTizheng_type";
				getTizhengListByType(tizheng_jiancha_type_global);
			}
		}
		if(document_type_global == "addhulijilu" || document_type_global == "addXuetangJiludan")
		{
			var yuansu = $('[zidingyi="next"]');
			if(typeof(yuansu.eq( f2_key_number ).attr("keyboard")) != "undefined")
			{
				if(yuansu.eq( f2_key_number ).attr("keyboard") == "divpingbi")
				{
					yuansu.eq( f2_key_number ).attr("contenteditable","true");
				}
				else if(yuansu.eq( f2_key_number ).attr("keyboard") == "inputpingbi")
				{
					yuansu.eq( f2_key_number ).removeAttr("readonly");
				}
			}
			setTimeout(function(){
				yuansu.eq( f2_key_number - 1 ).focus();
			},500);

			f2_key_number++;
			//$('[keyboard="divpingbi"]').removeAttr("contenteditable");
			//$('[keyboard="inputpingbi"]').attr("readonly","readonly");
		}
	}
}

/*加载Loding框 开始*/
function loading(){
	var mask="<div id='m'></div>";

	var loading='<div id="lo"><div id="loading" class="spinner"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div></div></div>';
   $("body").prepend(loading).prepend(mask);
 /**注释a*/
   $("#lo").css("position","absolute").css("width","100px").css("height","30px").css("text-align","center").css("z-index","9999").css("top","50%").css("left","40%");
  /**注释b*/
  $("#m").width($(document).width()).height($(document).height()).css("background-color","#666").css("opacity","0.2").css("-moz-opacity","0.4").css("position","absolute").css("z-index","10");
	// $('#loading').removeClass('spinner');
}
function Response(data){
	if(data.status == 1)
	{
		$('#' + curr_div_id  + ' #tab-tbody').html(data.data);
	}
    $('#m').remove();
    $('#lo').remove();
}
/*加载Loding框 结束*/
